home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 August / EnterCD 08_2005.iso / boot / menus / main.scn < prev    next >
Encoding:
Text File  |  2005-04-27  |  3.3 KB  |  78 lines

  1. #
  2. # Timeout after 5 mins
  3. #
  4. set timer = 5
  5.  
  6. #
  7. # Main Menu
  8. #
  9. main_menu:
  10. set textColor = color[white on black]
  11. clear
  12. set textColor = color[yellow on blue]
  13. print "                            ULTIMATE BOOT CD VER 3.3                            "
  14. print "                         http://www.ultimatebootcd.com/                         "
  15. print "                                                                                "
  16. set textColor = color[white on red]
  17. print "                                  [Main Menu]                                   "
  18. set textColor = color[white on cyan]
  19. print "                                                                                "
  20. print "                                                                                "
  21. print "                                                                                "
  22. print "                                                                                "
  23. print "                           [F1] Mainboard Tools                                 "
  24. print "                           [F2] Hard Disk Tools                                 "
  25. print "                           [F3] Filesystem Tools                                "
  26. print "                           [F4] Other Tools                                     "
  27. print "                           [F5] User-defined Tools                              "
  28. print "                           [F6] DOS/Linux Boot Disks                            "
  29. if file[\INSERT\INSERT]; else set textColor = color[brightgrey on cyan]
  30. print "                           [F7] INSERT for UBCD                                 "
  31. set textColor = color[white on cyan]
  32. print "                                                                                "
  33. print "                           [F8] Boot first hard disk                            "
  34. print "                           [F9] Boot second hard disk                           "
  35. print "                          [F10] Drop to console                                 "
  36. print "                                                                                "
  37. print "                                                                                "
  38. print "                                                                                "
  39. print "                                                                                "
  40. set textColor = color[white on blue]
  41. print "        Please select an item (First hard disk will boot after $(timer) minutes)       "
  42. set textColor = color[white on black]
  43.  
  44. #
  45. # Actions
  46. #
  47. getkey 60 goto timeout
  48. clear
  49. if ($lastKey == key[f1]); then script mboard.scn
  50. if ($lastKey == key[f2]); then script hdd.scn
  51. if ($lastKey == key[f3]); then script filesys.scn
  52. if ($lastKey == key[f4]); then script others.scn
  53. if ($lastKey == key[f5]); then script custom.scn
  54. if ($lastKey == key[f6]); then script bootdsk.scn
  55. if file[\INSERT\INSERT]
  56. then if ($lastKey == key[f7]); then script insert.scn
  57. if ($lastKey == key[f8]); then script boothdd0.scn
  58. if ($lastKey == key[f9]); then script boothdd1.scn
  59. if ($lastKey == key[f10]); then goto console
  60. goto main_menu
  61.  
  62. #
  63. # Decrement timer and refresh display, or boot from HDD0 if timeout
  64. #
  65. timeout:
  66. if $timer  == 0; then script timeout.scn
  67. set timer = $timer - 1
  68. goto main_menu
  69.  
  70. #
  71. # Drop to console
  72. #
  73. console:
  74. cd /
  75. clear
  76. help
  77. end
  78.